<template>
  <router-view/>
</template>

<script>
import {createWebSocket} from "@/util/socket";

export default {
  name: 'App',
  created() {
    let user = JSON.parse(sessionStorage.getItem('user'))
    if (user !== null) {
      createWebSocket()
    }
  }
}
</script>

<style>
* {
  padding: 0;
  margin: 0;
}

html,
body,
#app {
  height: 100%;
  width: 100%;
}
</style>
